package commands;

import utils.ITransmittable;
import client.Move;
import nanoxml.XMLElement;

/**
 * This command represents a player's move.
 */
public class CommandMove implements ITransmittable  {

	private Move move;

	public CommandMove (Move move) {
		this.move = move;
	}

	public CommandMove (XMLElement message) {

		move = new Move (message);
	}

	public Move getMove() {
		return move;
	}

	public XMLElement toXML() {
		XMLElement message = move.toXML();

		return message;
	}
}
